<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script type="text/javascript">
		let a = 10;
		let b = 20;

		// c = a;
		// a = b;
		// b = c;
		// console.log(a,b);


		// var a,b,c = 5;
		

		// 变量解构赋值(模式匹配)
		
		// let [c,d] = [10,20];
		// console.log(c,d);
		// [a,b] = [b,a];
		// console.log(a,b);
		
		
		// let {uname,age,sex} = {uname:'张三',age:'19',sex:'男'}
		// console.log(uname,age,sex);


		/*$.get('xxxxx',function(res){
			// res=>{uname:'root','upass':'123',code:200,'msg':'登录成功'}
				
			let {code,msg} = res;
			if(code == 200){
				alert(msg)
			}else{
				alert('登录失败')
			}

		});*/







				
	</script>
</body>
</html>